package com.hxy.apartment.entities;

import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
@AllArgsConstructor
public class Resident {
    @NotNull(message = "学号不能为空")
    private Long id;
    @NotBlank(message = "姓名不能为空")
    private String name;
    @NotBlank(message = "公寓号不能为空")
    private String apartmentNum;
    @NotBlank(message = "寝室号不能为空")
    private String dormitoryNum;
    @NotBlank(message = "床号不能为空")
    private String bedNum;
    private String faceToken;
    @NotBlank(message = "联系方式不能为空")
    private String tel;
    @NotBlank(message = "家庭地址不能为空")
    private String address;
}
